package com.company.biz.user.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.user.entity.DepartmentEntity;
import com.company.user.req.AddDepartmentReq;
import com.company.user.req.DepartmentInfoReq;
import com.company.user.req.DepartmentListReq;

import java.util.List;

public interface DepartmentService extends IService<DepartmentEntity> {

    List<DepartmentEntity> getDepartmentList(DepartmentListReq req);

    boolean addDepartment(AddDepartmentReq req);

    DepartmentEntity getDepartmentInfoByDepartmentId(String departmentId);

    boolean updateDepartmentInfoByDepartmentId(DepartmentInfoReq req);

    boolean deleteDepartmentByDepartmentId(String  departmentId);

    List<Tree<String>> getAllDepartmentTree();
}
